﻿using System;
using System.Runtime.Serialization;

namespace DataFeedService
{
    [DataContract]
    public class TickUpdate
    {
        public TickUpdate() { }

        public TickUpdate(double price, DateTime timestamp)
        {
            Price = price;
            Timestamp = timestamp;
        }

        [DataMember]
        public double Price { get; private set; }

        [DataMember]
        public DateTime Timestamp { get; private set; }
    }
}
